package com.shootingGame
{
	import flash.display.MovieClip;

	public class HealthBar extends MovieClip
	{
		protected var _healthPercentage : Number;
		
		public function HealthBar()
		{
			super();
		}
		
		public function get healthPercentage() : Number{
			return _healthPercentage;
		}
		
		public function set healthPercentage(value : Number) {
			graphics.clear();
			_healthPercentage = value;
			if(_healthPercentage > 1)
				_healthPercentage = 1;
			else
				if(_healthPercentage < 0)
					_healthPercentage = 0;
		}
	}
}